package org.example.new_hbps_backend_reconstruction.entity.request;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.new_hbps_backend_reconstruction.config.LocalTimeListDeserializer;
import org.example.new_hbps_backend_reconstruction.config.LocalTimeListSerializer;
import org.example.new_hbps_backend_reconstruction.entity.EatDrugAlertEntity;

import java.time.LocalTime;
import java.util.List;

/**
 * @author 丁利军
 * @date 2025年10月11日 21:16
 * @description TODO: 描述
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class AddDrugAlertRequest extends EatDrugAlertEntity {

    @JsonSerialize(using =   LocalTimeListSerializer.class)
    @JsonDeserialize(using = LocalTimeListDeserializer.class)
    private List<LocalTime> eatTime;
}

